package day8;

import java.util.Scanner;


//最小公倍数   a, b   max = (a * b)/最小公约数 -> 辗转相除法
public class oj2 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int x = a;
        int y = b;
        if(a < b) {
            int tmp = b;
            b = a;
            a = tmp;
        }
        while(a % b != 0) {
            int r = a % b;
            a = b;
            b = r;
        }
        int max = (x * y)/b;
        System.out.println(max);
    }
}
